package com.wonder.service.impl;

import com.wonder.dao.UserRepository;
import com.wonder.domain.User;
import com.wonder.service.UserService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by tmac9 on 2017/6/9.
 */
@Component
public class UserServiceImpl implements UserService{

    @Resource
    UserRepository userRepository;
    @Override
    public User login(String username, String password) {
        return userRepository.findByUsernameAndPassword(username, password);
    }
}

